package leetcode.code0044;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution44 implements IDebug {
	public abstract boolean isMatch(String s, String p);

	@Override
	public void debug1() {
		String s = "aa";
		String p = "a";
		boolean e = false;
		boolean r = this.isMatch(s, p);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = "aa";
		String p = "*";
		boolean e = true;
		boolean r = this.isMatch(s, p);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String s = "cb";
		String p = "?a";
		boolean e = false;
		boolean r = this.isMatch(s, p);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String s = "adceb";
		String p = "*a*b";
		boolean e = true;
		boolean r = this.isMatch(s, p);
		HelpDebug.compare(e, r);
	}

	public void debug5() {
		String s = "acdcb";
		String p = "a*c?b";
		boolean e = false;
		boolean r = this.isMatch(s, p);
		HelpDebug.compare(e, r);
	}

}
